package utils;

import org.springframework.stereotype.Component;
import org.springframework.validation.BindingResult;
import org.springframework.validation.DirectFieldBindingResult;
import org.springframework.validation.FieldError;

/**
 * 参数校验工具类
 *
 * @author Gaoch
 * @since 2021/05/19 08:48:56
 */
@Component
public class ParamsUtil {

    public static Class<?> params() throws Exception {
        System.out.println("fdsf");
        throw new Exception("测试异常");
    }


    public static <T> void validate(T obj, Object... groups) throws Exception {
        System.out.println("fdsfs");
        throw new Exception("fdsfdsfdsfdsf");
    }
}
